package com.feiyu.universal.controller;

import lombok.Data;
import lombok.ToString;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tang ming
 * @since 2022/1/13 15:42
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @PostMapping("/get")
    public R<Test> test(@RequestBody Test test){
        System.out.println(test.toString());
        return R.data(test);
    }

}
@Data
@ToString
class Test{
    String tag;
    String id;
}
